import km from 'keymirror';
import _ from 'underscore';

const env = process.env.NODE_ENV || 'development';
console.log('env: ', env);
// let url = 'http://10.150.2.133:8080';
let url = 'https://test-component.qingclass.com';
if (env === 'test') {
  url = 'https://test-component.qingclass.com';
} else if (env === 'production') {
  url = 'https://component.qingclass.com';
}
export default _.extend({
  REQUEST_URL: url,
  COOKIE_DEFAULT_MAXAGE: 2 * 60 * 60 * 1000, // 默认两小时有效时间
  COOKIE_DEFAULT_PATH: '/',
  COOKIE_USER_NICKNAME: 'nickname',
  COOKIE_USER_NAME: 'username',
  COOKIE_USER_ID: 'id',
  COOKIE_USER_PHOTOURL: 'imageData',
  COOKIE_USER_ROLE: 'role',
  COOKIE_TOKEN: 'token',
  COOKIE_USER_WOA_LIST: 'publicAccounts',
  COOKIE_IS_FIRST_LOGIN: 'isFirstLogin',
  STORAGE_LOCAL_WOA: 'localWoa',
}, km({
}));
